
$(document).ready(function () {
	findAllPlanType();
	findAllPlanStatus();
	findAllPlanScope();
	findAllPlanRegion();
	findAllPlanGrade();
	findAllEventType();
});
/**
 * 作获取所有事件类型操作
 */
function findAllEventType() {
	var timestamp = Date.parse(new Date());
	$.get("lzm/FindPlanBasis_findAllEventType.action?ts=" + timestamp, null, findAllEventTypeRst);
}
/**
 * 作获取所有预案类型操作
 */
function findAllPlanType() {
	var timestamp = Date.parse(new Date());
	$.get("lzm/FindPlanBasis_findAllPlanType.action?ts=" + timestamp, null, findAllPlanTypeRst);
}
/**
 * 作获取所有预案状态操作
 */
function findAllPlanStatus() {
	var timestamp = Date.parse(new Date());
	$.get("lzm/FindPlanBasis_findAllPlanStatus.action?ts=" + timestamp, null, findAllPlanStatusRst);
}
/**
 * 作获取所有预案适用范围操作
 */
function findAllPlanScope() {
	var timestamp = Date.parse(new Date());
	$.get("lzm/FindPlanBasis_findAllPlanScope.action?ts=" + timestamp, null, findAllPlanScopeRst);
}
/**
 * 作获取所有预案适用区域操作
 */
function findAllPlanRegion() {
	var timestamp = Date.parse(new Date());
	$.get("lzm/FindPlanBasis_findAllPlanRegion.action?ts=" + timestamp, null, findAllPlanRegionRst);
}
/**
 * 作获取所有预案等级操作
 */
function findAllPlanGrade() {
	var timestamp = Date.parse(new Date());
	$.get("lzm/FindPlanBasis_findAllPlanGrade.action?ts=" + timestamp, null, findAllPlanGradeRst);
}
/**
 * 作获取事件类型回调函数
 */
function findAllEventTypeRst(data) {
	var pt = "";
	$.each(data.eventTypeList, function (i, n) {
		var tmp = "";
		tmp = "<option value=" + n.etId + ">" + n.etEventType + "</option>";
		pt += tmp;
	});
	$("#eventType").append(pt);
}
/**
 * 作获取预案类型回调函数
 */
function findAllPlanTypeRst(data) {
	var pt = "";
	$.each(data.planTypeList, function (i, n) {
		var tmp = "";
		tmp = "<option value=" + n.ptId + ">" + n.ptName + "</option>";
		pt += tmp;
	});
	$("#planType").append(pt);
}
/**
 * 作获取预案状态回调函数
 */
function findAllPlanStatusRst(data) {
	var pt = "";
	$.each(data.planStatusList, function (i, n) {
		var tmp = "";
		tmp = "<option value=" + n.pstId + ">" + n.pstName + "</option>";
		pt += tmp;
	});
	$("#planStatus").append(pt);
}
/**
 * 作获取预案适用范围回调函数
 */
function findAllPlanScopeRst(data) {
	var pt = "";
	$.each(data.planScopeList, function (i, n) {
		var tmp = "";
		tmp = "<option value=" + n.psId + ">" + n.psName + "</option>";
		pt += tmp;
	});
	$("#planScope").append(pt);
}
/**
 * 作获取预案适用区域回调函数
 */
function findAllPlanRegionRst(data) {
	var pt = "";
	$.each(data.planRegionList, function (i, n) {
		var tmp = "";
		tmp = "<option value=" + n.prId + ">" + n.prName + "</option>";
		pt += tmp;
	});
	$("#planRegion").append(pt);
}
/**
 * 作获取预案等级回调函数
 */
function findAllPlanGradeRst(data) {
	var pt = "";
	$.each(data.planGradeList, function (i, n) {
		var tmp = "";
		tmp = "<option value=" + n.pgId + ">" + n.pgName + "</option>";
		pt += tmp;
	});
	$("#planGrade").append(pt);
}

